﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace Agresso.Interface.Layer.Domain
{
    public class DaDeskCompany
    {
        public long DaDeskCompany_id;
        public string Company = "";
        public string AgrCompany_Code = "";
        public string AgrCompany_Name = "";
        public string AgrClient = "";

        public DaDeskCompany() { }
        public DaDeskCompany(SqlDataReader rd)
        {
            DaDeskCompany_id = Convert.ToInt32(rd["DaDeskCompany_id"]);
            Company = rd["Company"] is DBNull ? Company : rd["Company"].ToString();
            AgrCompany_Code = rd["AgrCompany_Code"] is DBNull ? AgrCompany_Code : rd["AgrCompany_Code"].ToString();
            AgrCompany_Name = rd["AgrCompany_Name"] is DBNull ? AgrCompany_Name : rd["AgrCompany_Name"].ToString();
            AgrClient = rd["AgrClient"] is DBNull ? AgrClient : rd["AgrClient"].ToString();
        }
    }
}
